package com.ykdl.member.kid.marketcard;

import android.os.Bundle;
import android.webkit.WebView;

import com.ykdl.member.constant.KidAction;
import com.ykdl.member.constant.KidConfig;
import com.ykdl.member.kid.R;
import com.ykdl.member.kid.gears.WebViewActivity;
import com.ykdl.member.kid.util.AccessTokenKeeper;

public class NewStoreCoupon extends WebViewActivity{
	
	private static String store_id;
	private String store_name="";
	private boolean isStore=true;
	private static AccessTokenKeeper mTokenKeeper;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		store_id = this.getIntent().getStringExtra(KidAction.STORE_ID);
		store_name = this.getIntent().getStringExtra(KidAction.STORE_NAME);
		isStore = this.getIntent().getBooleanExtra(KidAction.IS_STORE, true);
		setContentView(R.layout.activity_store_coupon);
		initViews();
	}

	private void initViews() {
		// TODO Auto-generated method stub
		webView =(WebView)findViewById(R.id.webView);
		String ua = webView.getSettings().getUserAgentString();
		webView.getSettings().setUserAgentString(ua+"; HSH_APP/android");
		mTokenKeeper = new AccessTokenKeeper(this);
		String url =KidConfig.PRODUCT_LIST_H5+store_id+"/product_list.html"+"?"+mTokenKeeper.getmAccessTokenTitle()+"="+mTokenKeeper.getmAccessToken();
		webView.loadUrl(url);
	}
	public static String getStoreId(){
		return store_id;
	}

	
	
	@Override
	protected void getIntentData() {
		// TODO Auto-generated method stub
	}

	@Override
	protected void setWapTitle() {
		// TODO Auto-generated method stub
	}

	@Override
	protected void startLoadUrl() {
		// TODO Auto-generated method stub
	}

	@Override
	protected boolean overrideUrlLoading(WebView view, String url) {
		// TODO Auto-generated method stub
		return false;
	}

}
